split a path into all subpaths

44

split a path into all subpaths -

import os
path = os.path.normpath(path)
path.split(os.sep)

Comments

Submit
0 Comments